function create_deformed_img_slices_toolbox(patient)



% 
%   [ dvf,static, static_mask, folder, folder_static]=read_dvf_elastix_cut2(scans,ref,folder_static,model_folder);
[ img]=read_deformed_img_slice_toolbox(patient);

img_tmp=zeros(patient.scans,patient.dim(2),patient.dim(3));

for slice=1:patient.dim(1);
    
    img_tmp=squeeze(img(:,slice,:,:));
    save([ patient.image_slice_folder sprintf('/deformed_images_slice_%d',slice)],'img_tmp')
    
end
